<div class="reportBody">
    <div class="obrazok_report">
        <div class='obrazok'>
            <?php echo $map['html']; ?>
        </div>
        <?php echo $reported; ?>
    </div>
    <div class="reportContent">
        <div class="reportNadpis">
            <h3><?php
                $imgurl = base_url() . "css/images/" . $obr;
                echo img(array('src' => $imgurl, 'style' => 'vertical-align:middle;height:22px;margin-right:3px;'));

                echo $typ; ?></h3>
        </div>
        <div class="reportText">
            <ul>
                <li><b>Mesto:</b> <?= $city; ?></li>
                <li><b>Ulica/cesta:</b> <?= $street; ?></li>
                <li><b>Oblasť: </b> <?= $area; ?></li>
                <li><b>Videná:</b> <?= $seen; ?> (<?= $seen_daysAgo ?>)</li>
                <li><b>Počet komentárov:</b> <?= $no_comments; ?></li>
                <?php if (isset($source) && !empty($source)) echo "<li><b>Zdroj: </b>". $source ."</li>"; ?>
            </ul>

        </div>
    </div>

    <div class="reportLastOccurences">
        <div class="reportNadpis">
            <h3>Na mieste ste tiež videli...</h3>
        </div>
        <div class="reportText">

            <?php
            $i = 0;
            if (isset($daysBetween)) {
                echo "<dl>";
                // foreach ($daysBetween as $key) {
                for ($i = 0; $i < count($daysBetween); $i++) {
                    if ($i == 0)
                        echo "<dt>" . $daysBetween[$i] . "</dt>";
                    if ($i > 0)
                        if ($daysBetween[$i - 1] != $daysBetween[$i])
                            echo "<dt>" . $daysBetween[$i] . "</dt>";

                    echo "<dd> o " . $seen_last5[$i] . " [";
                    echo img(array('src' => base_url() . "css/images/" . $type_last5[$i]['obr'], 'style' => 'vertical-align:middle;height:15px;margin-right:3px;'));
                    echo $type_last5[$i]['popis'] . "] <span style='color:#AAAAAA;font-size:10px;'>[" . $comments_last5[$i] . "]</span></dd>";
                }
                echo "</dl>";
                // if (($pocet_vs['count']-5)>0){
                // 	echo "<div style='float:right;padding-right:15px;font-size:11px;'>
                // 	<a href=#>Ešte viac udalosti z tohto miesta (".($pocet_vs['count']-5).")</a></div>";
                // }
            } else {
                echo "Iné udalosti na tomto mieste ešte neboli.";
            }
            ?>


        </div>
    </div>

    <div class="reportThumbs">
        <?php
        $this->load->view('templates/thumbs');
        ?>
        <span class="warn_thumbs"></span>
    </div>
    <div class="comments">
        <div class="addComment">
            <?php echo form_open('');
            echo validation_errors('<i class="error_reg">', '</i><br />');
            ?>

            <ul>
                <h1>Komentáre</h1>
                <li>
                    <?php echo form_input(array('name' => 'login', 'id' => 'comment_title', 'style' => 'width:330px;', 'autocomplete' => 'off')); ?>
                    Názov
                </li>

                <li>
                    <?php echo form_textarea(array('name' => 'textarea', 'id' => 'comment_text', 'style' => 'width:490px;height:120px;min-width:490px;max-width:490px;min-height:70px;max-height:190px;', 'placeholder' => 'Váš postreh k udalosti...')); ?>
                </li>


                <li>
                    <?php echo form_submit(array('type' => 'submit', 'value' => 'Odošli!', 'id' => 'comment_button')); ?>
                    <?php echo form_reset(array('type' => 'reset', 'value' => 'Vymaž polia', 'id' => 'reset_button')); ?>
                    <span class="warn_comments"></span>
                </li>
                <li>

                </li>
                <?php echo form_close(); ?>
            </ul>
        </div>
    </div>

    <div class="news">
        <?php
        $this->load->view('templates/comments');
        ?>
    </div>
</div>
